package org.roger.almeida.client.controler;

import org.roger.almeida.client.AppEvents;
import org.roger.almeida.client.view.DashBoardView;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;

public class DashboardController extends Controller {
	
	private DashBoardView dashBoardView;
	
	
	public DashboardController() {
		registerEventTypes(AppEvents.INIT);
	}
	
	@Override
	protected void initialize() {
		super.initialize();
		dashBoardView = new DashBoardView(this);
	}

	@Override
	public void handleEvent(AppEvent event) {
		forwardToView(dashBoardView, event);
	}

}
